<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>01-vue使用步骤</title>
    <style>
        .pink{
            background-color: pink;
        }
        .big{
            width: 300px;
            height: 300px;
        }
    </style>
</head>
<body>
    <div id="app">
        <div :class="{pink:flag, big:true}"></div>
        <div>
            <button @click="change">点我啊</button>
        </div>
    </div>
    <script src="js/vue.js"></script>
    <script>
         let app = new Vue({
             el: '#app',
             data:{
                flag: true
             },
             methods: {
                 change(){
                     this.flag = !this.flag;
                 }
             }
         })
    </script>

</body>
</html>